<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/30
 * Time: 11:26
 */

namespace app\index\controller;


use think\Db;

class Assets extends Base{
    protected $userId;
    public function _initialize(){
        parent::_initialize();
        $this->userId=cookie('user_id');
    }
    // 资产概况
    public function index(){
        $user=Db::name('users')->where('id',$this->userId)->find();
        $this->assign(['users' => $user]);
        return view();
    }
}